package com.run.guifeng.model.enums;

import lombok.Data;


public enum EnumUtil {
    OK(20000, "成功"),
    ERROR(20001, "失败"),
    LOGINERROR(20002, "用户名或者密码错误"),
    ACCESSERROR(20003, "权限不足"),
    REMOTEERROR(20004, "远程调用失败"),
    REPERROR(20005, "重复操作"),
    CHECKCODEERROR(20006,"验证码错误")
    ;
    Integer  code;
    String message;
    EnumUtil(Integer code,String message){
        this.code = code;
        this.message =message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage(){
        return message;
    }
}